package ycl.scheduled.common.properties.redis;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * redis的pool连接池配置
 *
 * @author: YCL
 * @date: 2021-10-25 18:12:52
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.redis.lettuce.pool")
public class RedisPoolProperties {

	@ApiModelProperty("最大连接数")
	private int maxIdle;

	@ApiModelProperty("最小连接数")
	private int minIdle;

	@ApiModelProperty("最大等待时间")
	private int maxWait;

	@ApiModelProperty("最大访问数量")
	private int maxActive;

}
